class GiftlistModel {
  int id;
  String giftName;
  String giftIcon;
  int giftGold;
  int count;

  GiftlistModel({this.id, this.giftName, this.giftIcon, this.giftGold});

  GiftlistModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    giftName = json['gift_name'];
    giftIcon = json['gift_icon'];
    giftGold = json['gift_gold'];
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['gift_name'] = this.giftName;
    data['gift_icon'] = this.giftIcon;
    data['gift_gold'] = this.giftGold;
    data['count'] = this.count;
    return data;
  }
}
